# 作者: 肖老师
# 2024年11月27日06时27分18秒
# xxxrlmk@163.com

class A:
    def __init__(self):
        self.A_a = "A类的属性"
        self.B_b = "A类的属性B_b"
        self.a = 0

    def test(self):
        print('A test')

    def demo(self):
        print('A demo')


class B:
    def __init__(self):
        self.B_b = "B类的属性"
        self.A_a = 123

    def demo(self):
        print('B demo')

    def test(self):
        print('B test')


class C(A, B):
    def __init__(self):
        A.__init__(self)
        B.__init__(self)
        self.A_a = "C类的属性"
        self.B_b = "C类的属性B_b"


    def demo(self):
        print('C demo')


c = C()
c.demo()
c.test()
print(c.A_a)
print(C.__mro__)
